<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>忘记密码</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f4f4f4;
        }

        .container {
            width: 80%;
            max-width: 400px;
            margin: 50px auto;
            padding: 20px;
            background: #fff;
            border: 1px solid #ddd;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }

        header {
            background: #333;
            color: #fff;
            padding: 20px;
            text-align: center;
        }

        form {
            margin-top: 20px;
        }

        form label {
            display: block;
            margin-bottom: 5px;
        }

        form input[type="email"] ,form input[type="password"] ,form input[type="text"]{
            width: calc(100% - 20px);
            padding: 10px;
            margin-bottom: 10px;
            border: 1px solid #ddd;
        }

        form input[type="button"] {
            width: 100%;
            padding: 10px 20px;
            background: #333;
            color: #fff;
            border: none;
            cursor: pointer;
        }

        form input[type="button"]:hover {
            background: #444;
        }

        footer {
            background: #333;
            color: #fff;
            text-align: center;
            padding: 10px 0;
            position: relative;
            bottom: 0;
            width: 100%;
        }
    </style>
</head>

<body>
    <header>
        <h1>忘记密码</h1>
    </header>
    <div class="container" id="step1">
        <form>
            <p>请输入您的注册邮箱，我们将发送重置密码的链接到您的邮箱。</p>
            <label for="email">邮箱：</label>
            <input type="email" id="email" name="email" required>
            <input type="button" value="提交" onclick="submitEmail()">
        </form>
    </div>
    <div class="container" id="step2" style="display: none;">
        <form>
            <label for="code">验证码：</label>
            <input type="text" id="code" name="code" required>
            <input type="button" value="验证" onclick="verifyCode()">
        </form>
    </div>
    <div class="container" id="step3" style="display: none;">
        <form>
            <label for="password">新密码：</label>
            <input type="password" id="password" name="password" required>
            <label for="confirm_password">确认新密码：</label>
            <input type="password" id="confirm_password" name="confirm_password" required>
            <input type="button" value="重置密码" onclick="resetPassword()">
        </form>
    </div>
    <footer>
        <p>版权所有 © 2024 新闻网站</p>
    </footer>
</body>
</html>


